package com.hzit.client;

import com.hzit.client.factory.ClassesClientFallBackFactory;
import com.hzit.client.fallback.ClassesClientFallBack;
import com.hzit.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

// @FeignClient(value="hzit-classes",fallback = ClassesClientFallBack.class)
//或者
@FeignClient(value = "hzit-classes",fallbackFactory = ClassesClientFallBackFactory.class)
public interface ClassesClient {

	@GetMapping("/classes/list")
	public R list();

	// 1、hzit-classes找到nacos中注册的服务的ip及端口：
	// 2. 再根据方法前的映射关系，在上面的微服务中找到对应的方法并调用
}
